import org.junit.Test;

public class NGuessNumberTest {
    private static NGuessNumber ng=new NGuessNumber();
    @Test
    public void generateAnswer() {
        int[] arr = ng.generateAnswer();
        for (int i = 0; i < 4; i++) {
            System.out.println(arr[i]);
        }
    }
    @Test
    public void getPlayerInput() {
        int[] arr = ng.getPlayerInput();
        for (int i = 0; i < 4; i++) {
            System.out.println(arr[i]);
        }
    }
    @Test
    public void compareGuessAnswer() {
        int[] rn = {1,2,3,4};
        int[] pi = {1,2,2,4};
        String count = ng.compareGuessAnswer(rn,pi);
        System.out.println(count);
    }
    @Test
    public void isWin() {
        for (int i = 0; i <= 4; i++) {
            boolean end = ng.isWin(i);
            System.out.println(i+":"+end);
        }

    }
}